package com.summarecon.utility;

import java.io.File;

import android.app.Activity;

public class CopyFile extends Activity{
	public static void copyDatabase(File file_db){
		/*
		try {
		    File sd = Environment.getExternalStorageDirectory();
		    File data = Environment.getDataDirectory();

		    if (sd.canWrite()) {
		        File currentDB = data;
		        File backupDB = file_db;

		        if (currentDB.exists()) {
		            FileChannel dst = new FileInputStream(currentDB).getChannel();
		            FileChannel src = new FileOutputStream(backupDB).getChannel();
		            dst.transferFrom(src, 0, src.size());
		            src.close();
		            dst.close();
		        }
		        //line4.setText("Successful Import");
		    }
		} catch (Exception e) {
		    //line4.setText(e.toString());
		} 
		*/
	}
}
